<!DOCTYPE html><html><head><meta charset="utf-8"><title>Centos7安装oracle11gr2 | Lehoon</title><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"><meta name="description" content="Centos7最小化安装后，安装Oracle11g r2过程记录。"><meta property="og:type" content="article"><meta property="og:title" content="Centos7安装oracle11gr2"><meta property="og:url" content="http://blog.lehoon.cn/backend/2016/10/09/centos-oracle11gr2-install.html"><meta property="og:site_name" content="Lehoon"><meta property="og:description" content="Centos7最小化安装后，安装Oracle11g r2过程记录。"><meta property="og:updated_time" content="2016-10-11T05:45:16.830Z"><meta name="twitter:card" content="summary"><meta name="twitter:title" content="Centos7安装oracle11gr2"><meta name="twitter:description" content="Centos7最小化安装后，安装Oracle11g r2过程记录。"><link rel="alternative" href="/rss.xml" title="Lehoon" type="application/atom+xml"><link rel="icon" href="/favicon.ico"><link rel="stylesheet" href="/css/style.css"><link rel="stylesheet" href="http://static.lehoon.cn/font-awesome.min.css"><link rel="apple-touch-icon" href="/img/apple-touch-icon.png"><link rel="stylesheet" href="http://static.lehoon.cn/fancybox/jquery.fancybox.css"><script src="http://static.lehoon.cn/js/pace.js"></script><link href="/css/pace/pace-theme-flash.css" rel="stylesheet"><script>var yiliaConfig={rootUrl:"/",fancybox:!0,animate:!1,isHome:!1,isPost:!0,isArchive:!1,isTag:!1,isCategory:!1,open_in_new:!1}</script></head><body><div id="container"><div class="left-col"><div class="overlay"></div><div class="intrude-less"><header id="header" class="inner"><hgroup><h1 class="header-author"><a href="/" title="Hi Lehoon">lehoon</a></h1></hgroup><div id="switch-area" class="switch-area"><div class="switch-wrap"><section class="switch-part switch-part1"><nav class="header-menu"><ul><li><a href="/">主页</a></li><li><a href="/archives">文章</a></li><li><a href="/projects">项目</a></li><li><a href="/categories/backend">后端</a></li><li><a href="/categories/frontend">前端</a></li><li><a href="/categories/orther">其他</a></li><li><a href="/polymerization">聚合</a></li><li><a href="/about">关于</a></li></ul></nav><nav class="header-nav"><ul class="social"><a class="fl mail" target="_blank" href="mailto:lehoon@lehoon.com" title="mail">mail</a> <a class="fl github" target="_blank" href="https://github.com/lehoon" title="github">github</a> <a class="fl weibo" target="_blank" href="http://weibo.com/lehoons" title="weibo">weibo</a> <a class="fl rss" target="_blank" href="/rss.xml" title="rss">rss</a></ul></nav></section><section class="switch-part switch-part3"><div id="js-aboutme">热爱生活，享受生活。</div></section></div></div></header></div></div><div class="mid-col"><nav id="mobile-nav"><div class="overlay"><div class="slider-trigger"></div><h1 class="header-author js-mobile-header hide"><a href="/" title="Me">lehoon</a></h1></div><div class="intrude-less"><header id="header" class="inner"><hgroup><h1 class="header-author"><a href="/" title="Me">lehoon</a></h1></hgroup><nav class="header-menu"><ul><li><a href="/">主页</a></li><li><a href="/archives">文章</a></li><li><a href="/projects">项目</a></li><li><a href="/categories/backend">后端</a></li><li><a href="/categories/frontend">前端</a></li><li><a href="/categories/orther">其他</a></li><li><a href="/polymerization">聚合</a></li><li><a href="/about">关于</a></li><div class="clearfix"></div></ul></nav><nav class="header-nav"><div class="social"><a class="mail" target="_blank" href="mailto:lehoon@lehoon.com" title="mail">mail</a> <a class="github" target="_blank" href="https://github.com/lehoon" title="github">github</a> <a class="weibo" target="_blank" href="http://weibo.com/lehoons" title="weibo">weibo</a> <a class="rss" target="_blank" href="/rss.xml" title="rss">rss</a></div></nav></header></div></nav><div class="body-wrap"><article id="post-centos-oracle11gr2-install" class="article article-type-post" itemscope itemprop="blogPost"><div class="article-meta"><a href="/backend/2016/10/09/centos-oracle11gr2-install.html" class="article-date"><time datetime="2016-10-09T08:11:23.000Z" itemprop="datePublished">2016-10-09</time></a></div><div class="article-inner"><input type="hidden" class="isFancy"><header class="article-header"><h1 class="article-title" itemprop="name">Centos7安装oracle11gr2</h1></header><div class="article-info article-info-post"><div class="article-category tagcloud"><a class="article-category-link" href="/categories/backend/">后端</a></div><div class="article-tag tagcloud"><ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/centos7/">centos7</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/linux/">linux</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/oracle11g/">oracle11g</a></li></ul></div><div class="clearfix"></div></div><div class="article-entry" itemprop="articleBody"><p>Centos7最小化安装后，安装Oracle11g r2过程记录。<br><a id="more"></a></p><h2 id="更新yum源"><a href="#更新yum源" class="headerlink" title="更新yum源"></a>更新yum源</h2><p>把centos的yum源修改为163源<br></p><figure class="highlight stylus"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">下载yum源文件</div><div class="line">wget -O /etc/yum<span class="selector-class">.repos</span><span class="selector-class">.d</span>/CentOS-Base<span class="selector-class">.repo</span> http:<span class="comment">//mirrors.163.com/.help/CentOS7-Base-163.repo</span></div><div class="line">清理缓存</div><div class="line">yum clean all</div><div class="line">重建缓存</div><div class="line">yum makecache</div></pre></td></tr></table></figure><p></p><h2 id="关闭selinux"><a href="#关闭selinux" class="headerlink" title="关闭selinux"></a>关闭selinux</h2><p>关闭selinux,修改selinux的配置文件,通过sed流编辑器，把SELINUX=enforcing替换为SELINUX=disabled<br></p><figure class="highlight armasm"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line"><span class="symbol">sed</span> -i <span class="string">"s/SELINUX=enforcing/SELINUX=disabled/"</span> /etc/<span class="keyword">selinux/config</span></div><div class="line"></div><div class="line">关闭<span class="keyword">selinux</span></div><div class="line"><span class="symbol">setenforce</span> <span class="number">0</span></div></pre></td></tr></table></figure><p></p><h2 id="关闭防火墙"><a href="#关闭防火墙" class="headerlink" title="关闭防火墙"></a>关闭防火墙</h2><p>由于在centos7后，默认使用的是firewall，所以把firewalld禁用就可以了<br></p><figure class="highlight css"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line"><span class="selector-tag">systemctl</span> <span class="selector-tag">stop</span> <span class="selector-tag">firewalld</span><span class="selector-class">.service</span></div><div class="line"><span class="selector-tag">systemctl</span> <span class="selector-tag">disable</span> <span class="selector-tag">firewalld</span><span class="selector-class">.service</span></div></pre></td></tr></table></figure><p></p><h2 id="时间同步ntp"><a href="#时间同步ntp" class="headerlink" title="时间同步ntp"></a>时间同步ntp</h2><p>用于同步服务器时间<br></p><figure class="highlight lsl"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">yum install ntp</div><div class="line">然后在crontab中增加定时时间同步,<span class="number">1</span>小时同步一次。</div><div class="line">crontab -e</div><div class="line"><span class="number">00</span> */<span class="number">1</span> * * * /usr/sbin/ntpdate time.nuri.net</div></pre></td></tr></table></figure><p></p><h2 id="安装开发环境"><a href="#安装开发环境" class="headerlink" title="安装开发环境"></a>安装开发环境</h2><p>一般在linux下搭建开发环境的基础是c/c++，为了一次性使用yum安装好该环境，最好使用的命令是<br></p><figure class="highlight nginx"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line"><span class="attribute">yum</span> groupinstall <span class="string">'Development Tools'</span></div></pre></td></tr></table></figure><p></p><h2 id="安装网络工具"><a href="#安装网络工具" class="headerlink" title="安装网络工具"></a>安装网络工具</h2><p>为了使用netstat、arp等工具调试网络问题，所以需要安装net-tools包。<br></p><figure class="highlight cmake"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">yum <span class="keyword">install</span> net-tools</div></pre></td></tr></table></figure><p></p><h2 id="修改主机名"><a href="#修改主机名" class="headerlink" title="修改主机名"></a>修改主机名</h2><p>修改服务器的名称，使用hostnamectl命令修改<br></p><figure class="highlight dsconfig"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line"><span class="string">hostnamectl </span><span class="built_in">set-hostname</span> <span class="string">dbserver</span></div></pre></td></tr></table></figure><p></p><p>hostnamectl只会同步修改/etc/hostname， 不会更新/etc/hosts，所以需要手动更改/etc/hosts文件。<br></p><figure class="highlight dns"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">cd /etc/</div><div class="line">vi hosts</div><div class="line"><span class="number">127.0.0.1</span>   dbserver</div><div class="line"><span class="number">::1</span>         localhost localhost.localdomain localhost6 localhost6.localdomain6</div></pre></td></tr></table></figure><p></p><p>修改完后，reboot重启机器。</p><h2 id="检查需要的包"><a href="#检查需要的包" class="headerlink" title="检查需要的包"></a>检查需要的包</h2><figure class="highlight brainfuck"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line"><span class="comment">rpm</span> <span class="literal">-</span><span class="comment">qa</span> <span class="comment">binutils</span> <span class="comment">compat</span><span class="literal">-</span><span class="comment">libstdc</span><span class="literal">+</span><span class="literal">+</span><span class="literal">-</span><span class="comment">33</span> <span class="comment">elfutils</span><span class="literal">-</span><span class="comment">libelf</span> <span class="comment">elfutils</span><span class="literal">-</span><span class="comment">libelf</span><span class="literal">-</span><span class="comment">devel</span> <span class="comment">elfutils</span><span class="literal">-</span><span class="comment">libelf</span><span class="literal">-</span><span class="comment">devel</span><span class="literal">-</span><span class="comment">static</span> <span class="comment">gcc</span> <span class="comment">gcc</span><span class="literal">-</span><span class="comment">c</span><span class="literal">+</span><span class="literal">+</span> <span class="comment">glibc</span> <span class="comment">glibc</span><span class="literal">-</span><span class="comment">common</span> <span class="comment">glibc</span><span class="literal">-</span><span class="comment">devel</span> <span class="comment">glibc</span><span class="literal">-</span><span class="comment">headers</span> </div><div class="line"><span class="comment">glibc</span><span class="literal">-</span><span class="comment">static</span> <span class="comment">kernel</span><span class="literal">-</span><span class="comment">headers</span> <span class="comment">pdksh</span> <span class="comment">libaio</span> <span class="comment">libaio</span><span class="literal">-</span><span class="comment">devel</span> <span class="comment">libgcc</span> <span class="comment">libgomp</span> <span class="comment">libstdc</span><span class="literal">+</span><span class="literal">+</span> <span class="comment">libstdc</span><span class="literal">+</span><span class="literal">+</span><span class="literal">-</span><span class="comment">devel</span> <span class="comment">libstdc</span><span class="literal">+</span><span class="literal">+</span><span class="literal">-</span><span class="comment">static</span> <span class="comment">make</span> <span class="comment">numactl</span><span class="literal">-</span><span class="comment">devel</span> </div><div class="line"><span class="comment">sysstat</span> <span class="comment">unixODBC</span> <span class="comment">unixODBC</span><span class="literal">-</span><span class="comment">devel</span></div></pre></td></tr></table></figure><p>发现没有的包通过yum install 包名安装好即可。</p><p>这里需要注意的是pdksh这个包，在centos5以后yum源里面就没有这个了。<br>所以需要下载rpm包或者源码编译。<br>我这里准备的是pdksh-5.2.14-30.x86_64.rpm包，安装如下：<br></p><figure class="highlight coffeescript"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">rpm -ivh pdksh<span class="number">-5.2</span><span class="number">.14</span><span class="number">-30.</span>x86_64.rpm </div><div class="line">警告：pdksh<span class="number">-5.2</span><span class="number">.14</span><span class="number">-30.</span>x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID <span class="number">73307</span>de6: NOKEY</div><div class="line">准备中...                          <span class="comment">######</span><span class="comment">######</span><span class="comment">######</span><span class="comment">######</span><span class="comment">######</span><span class="comment">### [100%]</span></div><div class="line">试图安装 pdksh-5.2.14-30.x86_64 和 pdksh-5.2.14-30.x86_64 会导致文件 /usr/bin/ksh 冲突</div></pre></td></tr></table></figure><p></p><p>通过–force强制安装选项来安装<br></p><figure class="highlight coffeescript"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line">rpm -ivh --force pdksh<span class="number">-5.2</span><span class="number">.14</span><span class="number">-30.</span>x86_64.rpm </div><div class="line">警告：pdksh<span class="number">-5.2</span><span class="number">.14</span><span class="number">-30.</span>x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID <span class="number">73307</span>de6: NOKEY</div><div class="line">准备中...                          <span class="comment">######</span><span class="comment">######</span><span class="comment">######</span><span class="comment">######</span><span class="comment">######</span><span class="comment">### [100%]</span></div><div class="line">正在升级/安装...</div><div class="line">   1:pdksh-5.2.14-30                  ###<span class="comment">######</span><span class="comment">######</span><span class="comment">######</span><span class="comment">######</span><span class="comment">######</span> [<span class="number">100</span>%]</div></pre></td></tr></table></figure><p></p><h2 id="创建用户"><a href="#创建用户" class="headerlink" title="创建用户"></a>创建用户</h2><h3 id="创建用户组"><a href="#创建用户组" class="headerlink" title="创建用户组"></a>创建用户组</h3><figure class="highlight nginx"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line"><span class="attribute">groupadd</span> dba</div><div class="line">groupadd oinstall</div></pre></td></tr></table></figure><h3 id="创建用户oracle"><a href="#创建用户oracle" class="headerlink" title="创建用户oracle"></a>创建用户oracle</h3><figure class="highlight mipsasm"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">添加<span class="keyword">oracle用户</span></div><div class="line">useradd -m -g oinstall -G dba <span class="keyword">oracle</span></div><div class="line">修改密码</div><div class="line">passwd <span class="keyword">oracle</span></div></pre></td></tr></table></figure><h2 id="配置内核参数"><a href="#配置内核参数" class="headerlink" title="配置内核参数"></a>配置内核参数</h2><h3 id="配置内核参数。"><a href="#配置内核参数。" class="headerlink" title="配置内核参数。"></a>配置内核参数。</h3><p>修改/etc/sysctl.conf文件，配置内核参数。<br>修改配置完成后，通过syscrl -p使其生效。<br></p><figure class="highlight stylus"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div></pre></td><td class="code"><pre><div class="line">kernel<span class="selector-class">.shmall</span> = <span class="number">2097152</span>    <span class="comment">//表示系统一次可以使用的共享内存总量(以页为单位)。缺省值就是2097152，通常不需要修改</span></div><div class="line">kernel<span class="selector-class">.shmmax</span> = <span class="number">4294967296</span> <span class="comment">//定义了共享内存段的最大尺寸(以字节为单位)。缺省为32M，</span></div><div class="line">对于oracle来说，该缺省值太低了，通常将其设置为<span class="number">4</span>G=<span class="number">4294967296</span>/<span class="number">1024</span>/<span class="number">1024</span>/<span class="number">1024</span></div><div class="line"> </div><div class="line">kernel<span class="selector-class">.shmmni</span> = <span class="number">4096</span>    <span class="comment">//用于设置系统范围内共享内存段的最大数量。该参数的默认值是 4096 。通常不需要更改</span></div><div class="line">kernel<span class="selector-class">.sem</span> = <span class="number">250</span> <span class="number">32000</span> <span class="number">100</span> <span class="number">128</span>    <span class="comment">//表示设置的信号量</span></div><div class="line">fs<span class="selector-class">.file-max</span> = <span class="number">65536</span>    <span class="comment">//表示文件句柄的最大数量。文件句柄表示在Linux系统中可以打开的文件数量。其实是由"fs.file-max = 512 * PROCESSES"得到的，我们指定PROCESSES的值为128，即为"fs.file-max =512 *128"。</span></div><div class="line">fs<span class="selector-class">.aio-max-nr</span> = <span class="number">1048576</span>    <span class="comment">//同时可以拥有的的异步IO请求数目。</span></div><div class="line">net<span class="selector-class">.ipv4</span><span class="selector-class">.ip_local_port_range</span> = <span class="number">1024</span> <span class="number">65000</span>    <span class="comment">//应用程序可使用的Ipv4端口范围。</span></div><div class="line"> </div><div class="line">net<span class="selector-class">.core</span><span class="selector-class">.rmem_default</span> = <span class="number">262144</span>    <span class="comment">//默认的接收窗口大小</span></div><div class="line">net<span class="selector-class">.core</span><span class="selector-class">.rmem_max</span> = <span class="number">4194304</span>    <span class="comment">//接收窗口的最大大小</span></div><div class="line">net<span class="selector-class">.core</span><span class="selector-class">.wmem_default</span> = <span class="number">262144</span>    <span class="comment">//默认的发送窗口大小</span></div><div class="line">net<span class="selector-class">.core</span><span class="selector-class">.wmem_max</span> = <span class="number">1048586</span>    <span class="comment">//发送窗口的最大大小</span></div><div class="line"> </div><div class="line">fs<span class="selector-class">.aio-max-nr</span> = <span class="number">1048576</span></div><div class="line">fs<span class="selector-class">.file-max</span> = <span class="number">6815744</span></div><div class="line"> </div><div class="line">kernel<span class="selector-class">.shmall</span> = <span class="number">2097152</span></div><div class="line">kernel<span class="selector-class">.shmmax</span> = <span class="number">536870912</span></div><div class="line">kernel<span class="selector-class">.shmmni</span> = <span class="number">4096</span></div><div class="line">kernel<span class="selector-class">.sem</span> = <span class="number">250</span> <span class="number">32000</span> <span class="number">100</span> <span class="number">128</span></div><div class="line">net<span class="selector-class">.ipv4</span><span class="selector-class">.ip_local_port_range</span> = <span class="number">9000</span> <span class="number">65500</span></div><div class="line"> </div><div class="line">net<span class="selector-class">.core</span><span class="selector-class">.rmem_default</span> = <span class="number">262144</span></div><div class="line">net<span class="selector-class">.core</span><span class="selector-class">.rmem_max</span> = <span class="number">4194304</span></div><div class="line">net<span class="selector-class">.core</span><span class="selector-class">.wmem_default</span> = <span class="number">262144</span></div><div class="line">net<span class="selector-class">.core</span><span class="selector-class">.wmem_max</span> = <span class="number">1048586</span></div></pre></td></tr></table></figure><p></p><h3 id="修改资源参数"><a href="#修改资源参数" class="headerlink" title="修改资源参数"></a>修改资源参数</h3><p>修改/etc/secrity/limits.conf文件，增加如下内容：<br></p><figure class="highlight lsl"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line">oracle   soft    nproc    <span class="number">2047</span></div><div class="line">oracle   hard    nproc    <span class="number">16384</span></div><div class="line">oracle   soft    nofile    <span class="number">1024</span></div><div class="line">oracle   hard    nofile    <span class="number">65536</span></div><div class="line"></div><div class="line">*       soft    nofile  <span class="number">8192</span></div><div class="line">*       hard    nofile  <span class="number">8192</span></div></pre></td></tr></table></figure><p></p><h2 id="创建安装目录"><a href="#创建安装目录" class="headerlink" title="创建安装目录"></a>创建安装目录</h2><figure class="highlight arduino"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line"><span class="built_in">mkdir</span> /<span class="built_in">home</span>/app</div><div class="line"><span class="built_in">mkdir</span> /<span class="built_in">home</span>/oradata</div></pre></td></tr></table></figure><p>设置目录权限<br></p><figure class="highlight groovy"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">chown <span class="string">oracle:</span>oinstall <span class="regexp">/home/</span>app</div><div class="line">chown <span class="string">oracle:</span>oinstall <span class="regexp">/home/</span>oradata</div><div class="line">chmod <span class="number">755</span> <span class="regexp">/home/</span>app</div><div class="line">chmod <span class="number">755</span> <span class="regexp">/home/</span>oradata</div></pre></td></tr></table></figure><p></p><h2 id="配置环境变量"><a href="#配置环境变量" class="headerlink" title="配置环境变量"></a>配置环境变量</h2><h3 id="修改全局环境变量"><a href="#修改全局环境变量" class="headerlink" title="修改全局环境变量"></a>修改全局环境变量</h3><p>修改oracle登录后的环境变量，vi /etc/profile增加如下内容：<br></p><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div></pre></td><td class="code"><pre><div class="line"><span class="keyword">if</span> [ <span class="variable">$USER</span> = <span class="string">"oracle"</span> ]; <span class="keyword">then</span> </div><div class="line"><span class="keyword">if</span> [ <span class="variable">$SHELL</span> = <span class="string">"/bin/ksh"</span> ]; <span class="keyword">then</span> </div><div class="line">  <span class="built_in">ulimit</span> -p 16384 </div><div class="line">  <span class="built_in">ulimit</span> -n 65536 </div><div class="line"><span class="keyword">else</span> </div><div class="line">  <span class="built_in">ulimit</span> -u 16384 -n 65536 </div><div class="line"><span class="keyword">fi</span></div><div class="line"><span class="keyword">fi</span></div></pre></td></tr></table></figure><p></p><p>重新加载属性文件，使其改动内容生效。<br></p><figure class="highlight gradle"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line"><span class="keyword">source</span> <span class="regexp">/etc/</span>profile</div></pre></td></tr></table></figure><p></p><h3 id="修改oracle环境变量"><a href="#修改oracle环境变量" class="headerlink" title="修改oracle环境变量"></a>修改oracle环境变量</h3><p>使用oracle用户登录系统，设置环境变量<br>vi .bash_profile添加以下内容：<br></p><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div></pre></td><td class="code"><pre><div class="line"><span class="comment"># .bash_profile</span></div><div class="line"></div><div class="line"><span class="comment"># Get the aliases and functions</span></div><div class="line"><span class="keyword">if</span> [ <span class="_">-f</span> ~/.bashrc ]; <span class="keyword">then</span></div><div class="line">        . ~/.bashrc</div><div class="line"><span class="keyword">fi</span></div><div class="line"></div><div class="line"><span class="built_in">umask</span> 022</div><div class="line"></div><div class="line">TMP=/tmp</div><div class="line">TMPDIR=/tmp</div><div class="line"><span class="built_in">export</span> TMP TMPDIR</div><div class="line"></div><div class="line"></div><div class="line"><span class="comment"># User specific environment and startup programs</span></div><div class="line"></div><div class="line">PATH=<span class="variable">$PATH</span>:<span class="variable">$HOME</span>/.local/bin:<span class="variable">$HOME</span>/bin</div><div class="line"></div><div class="line"><span class="built_in">export</span> PATH</div><div class="line"></div><div class="line"></div><div class="line"><span class="built_in">export</span> ORACLE_BASE=/home/app</div><div class="line"><span class="built_in">export</span> ORACLE_HOME=<span class="variable">$ORACLE_BASE</span>/oracle/product/11.2.0.4/db_1</div><div class="line"><span class="built_in">export</span> ORACLE_SID=orcl</div><div class="line"><span class="built_in">export</span> PATH=<span class="variable">$PATH</span>:<span class="variable">$ORACLE_HOME</span>/bin</div><div class="line"><span class="built_in">export</span> LD_LIBRARY_PATH=<span class="variable">$ORACLE_HOME</span>/lib:/usr/lib</div><div class="line"></div><div class="line"><span class="built_in">alias</span> sqlplus=<span class="string">"rlwrap sqlplus"</span></div><div class="line"><span class="built_in">alias</span> rman=<span class="string">"rlwrap rman"</span></div><div class="line"></div><div class="line"><span class="built_in">export</span> NLS_LANG=AMERICAN_AMERICA.ZHS16GBK</div></pre></td></tr></table></figure><p></p><h2 id="关联设置"><a href="#关联设置" class="headerlink" title="关联设置"></a>关联设置</h2><p>编辑文件：vi /etc/pam.d/login 加入以下语句:<br>session required /lib/security/pam_limits.so<br>session required pam_limits.so</p><h2 id="准备oracle11gr2的安装文件"><a href="#准备oracle11gr2的安装文件" class="headerlink" title="准备oracle11gr2的安装文件"></a>准备oracle11gr2的安装文件</h2><p>解压安装文件<br></p><figure class="highlight stylus"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">tar jxvf database<span class="selector-class">.tar</span><span class="selector-class">.bz2</span></div></pre></td></tr></table></figure><p></p><h2 id="oracle响应文件"><a href="#oracle响应文件" class="headerlink" title="oracle响应文件"></a>oracle响应文件</h2><p>制作oracle静默安装的响应文件db.rsp文件，文件内容如下：<br></p><figure class="highlight vala"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div><div class="line">41</div><div class="line">42</div><div class="line">43</div><div class="line">44</div><div class="line">45</div><div class="line">46</div><div class="line">47</div><div class="line">48</div><div class="line">49</div><div class="line">50</div><div class="line">51</div><div class="line">52</div><div class="line">53</div><div class="line">54</div><div class="line">55</div><div class="line">56</div><div class="line">57</div><div class="line">58</div><div class="line">59</div><div class="line">60</div><div class="line">61</div><div class="line">62</div><div class="line">63</div><div class="line">64</div><div class="line">65</div><div class="line">66</div><div class="line">67</div><div class="line">68</div><div class="line">69</div><div class="line">70</div><div class="line">71</div><div class="line">72</div><div class="line">73</div><div class="line">74</div><div class="line">75</div><div class="line">76</div><div class="line">77</div><div class="line">78</div><div class="line">79</div><div class="line">80</div><div class="line">81</div><div class="line">82</div><div class="line">83</div><div class="line">84</div><div class="line">85</div><div class="line">86</div><div class="line">87</div><div class="line">88</div><div class="line">89</div><div class="line">90</div><div class="line">91</div><div class="line">92</div><div class="line">93</div><div class="line">94</div><div class="line">95</div><div class="line">96</div><div class="line">97</div><div class="line">98</div><div class="line">99</div><div class="line">100</div><div class="line">101</div><div class="line">102</div><div class="line">103</div><div class="line">104</div><div class="line">105</div><div class="line">106</div><div class="line">107</div><div class="line">108</div><div class="line">109</div><div class="line">110</div><div class="line">111</div><div class="line">112</div><div class="line">113</div><div class="line">114</div><div class="line">115</div><div class="line">116</div><div class="line">117</div><div class="line">118</div><div class="line">119</div><div class="line">120</div><div class="line">121</div><div class="line">122</div><div class="line">123</div><div class="line">124</div><div class="line">125</div><div class="line">126</div><div class="line">127</div><div class="line">128</div><div class="line">129</div><div class="line">130</div><div class="line">131</div><div class="line">132</div><div class="line">133</div><div class="line">134</div><div class="line">135</div><div class="line">136</div><div class="line">137</div><div class="line">138</div><div class="line">139</div><div class="line">140</div><div class="line">141</div><div class="line">142</div><div class="line">143</div><div class="line">144</div><div class="line">145</div><div class="line">146</div><div class="line">147</div><div class="line">148</div><div class="line">149</div><div class="line">150</div><div class="line">151</div><div class="line">152</div><div class="line">153</div><div class="line">154</div><div class="line">155</div><div class="line">156</div><div class="line">157</div><div class="line">158</div><div class="line">159</div><div class="line">160</div><div class="line">161</div><div class="line">162</div><div class="line">163</div><div class="line">164</div><div class="line">165</div><div class="line">166</div><div class="line">167</div><div class="line">168</div><div class="line">169</div><div class="line">170</div><div class="line">171</div><div class="line">172</div><div class="line">173</div><div class="line">174</div><div class="line">175</div><div class="line">176</div><div class="line">177</div><div class="line">178</div><div class="line">179</div><div class="line">180</div><div class="line">181</div><div class="line">182</div><div class="line">183</div><div class="line">184</div><div class="line">185</div><div class="line">186</div><div class="line">187</div><div class="line">188</div><div class="line">189</div><div class="line">190</div><div class="line">191</div><div class="line">192</div><div class="line">193</div><div class="line">194</div><div class="line">195</div><div class="line">196</div><div class="line">197</div><div class="line">198</div><div class="line">199</div><div class="line">200</div><div class="line">201</div><div class="line">202</div><div class="line">203</div><div class="line">204</div><div class="line">205</div><div class="line">206</div><div class="line">207</div><div class="line">208</div><div class="line">209</div><div class="line">210</div><div class="line">211</div><div class="line">212</div><div class="line">213</div><div class="line">214</div><div class="line">215</div><div class="line">216</div><div class="line">217</div><div class="line">218</div><div class="line">219</div><div class="line">220</div><div class="line">221</div><div class="line">222</div><div class="line">223</div><div class="line">224</div><div class="line">225</div><div class="line">226</div><div class="line">227</div><div class="line">228</div><div class="line">229</div><div class="line">230</div><div class="line">231</div><div class="line">232</div><div class="line">233</div><div class="line">234</div><div class="line">235</div><div class="line">236</div><div class="line">237</div><div class="line">238</div><div class="line">239</div><div class="line">240</div><div class="line">241</div><div class="line">242</div><div class="line">243</div><div class="line">244</div><div class="line">245</div><div class="line">246</div><div class="line">247</div><div class="line">248</div><div class="line">249</div><div class="line">250</div><div class="line">251</div><div class="line">252</div><div class="line">253</div><div class="line">254</div><div class="line">255</div><div class="line">256</div><div class="line">257</div><div class="line">258</div><div class="line">259</div><div class="line">260</div><div class="line">261</div><div class="line">262</div><div class="line">263</div><div class="line">264</div><div class="line">265</div><div class="line">266</div><div class="line">267</div><div class="line">268</div><div class="line">269</div><div class="line">270</div><div class="line">271</div><div class="line">272</div><div class="line">273</div><div class="line">274</div><div class="line">275</div><div class="line">276</div><div class="line">277</div><div class="line">278</div><div class="line">279</div><div class="line">280</div><div class="line">281</div><div class="line">282</div><div class="line">283</div><div class="line">284</div><div class="line">285</div><div class="line">286</div><div class="line">287</div><div class="line">288</div><div class="line">289</div><div class="line">290</div><div class="line">291</div><div class="line">292</div><div class="line">293</div><div class="line">294</div><div class="line">295</div><div class="line">296</div><div class="line">297</div><div class="line">298</div><div class="line">299</div><div class="line">300</div><div class="line">301</div><div class="line">302</div><div class="line">303</div><div class="line">304</div><div class="line">305</div><div class="line">306</div><div class="line">307</div><div class="line">308</div><div class="line">309</div><div class="line">310</div><div class="line">311</div><div class="line">312</div><div class="line">313</div><div class="line">314</div><div class="line">315</div><div class="line">316</div><div class="line">317</div><div class="line">318</div><div class="line">319</div><div class="line">320</div><div class="line">321</div><div class="line">322</div><div class="line">323</div><div class="line">324</div><div class="line">325</div><div class="line">326</div><div class="line">327</div><div class="line">328</div><div class="line">329</div><div class="line">330</div><div class="line">331</div><div class="line">332</div><div class="line">333</div><div class="line">334</div><div class="line">335</div><div class="line">336</div><div class="line">337</div><div class="line">338</div><div class="line">339</div><div class="line">340</div><div class="line">341</div><div class="line">342</div><div class="line">343</div><div class="line">344</div><div class="line">345</div><div class="line">346</div><div class="line">347</div><div class="line">348</div><div class="line">349</div><div class="line">350</div><div class="line">351</div><div class="line">352</div><div class="line">353</div><div class="line">354</div><div class="line">355</div><div class="line">356</div><div class="line">357</div><div class="line">358</div><div class="line">359</div><div class="line">360</div><div class="line">361</div><div class="line">362</div><div class="line">363</div><div class="line">364</div><div class="line">365</div><div class="line">366</div><div class="line">367</div><div class="line">368</div><div class="line">369</div><div class="line">370</div><div class="line">371</div><div class="line">372</div><div class="line">373</div><div class="line">374</div><div class="line">375</div><div class="line">376</div><div class="line">377</div><div class="line">378</div><div class="line">379</div><div class="line">380</div><div class="line">381</div><div class="line">382</div><div class="line">383</div><div class="line">384</div><div class="line">385</div><div class="line">386</div><div class="line">387</div><div class="line">388</div><div class="line">389</div><div class="line">390</div><div class="line">391</div><div class="line">392</div><div class="line">393</div><div class="line">394</div><div class="line">395</div><div class="line">396</div><div class="line">397</div><div class="line">398</div><div class="line">399</div><div class="line">400</div><div class="line">401</div><div class="line">402</div><div class="line">403</div><div class="line">404</div><div class="line">405</div><div class="line">406</div><div class="line">407</div><div class="line">408</div><div class="line">409</div><div class="line">410</div><div class="line">411</div><div class="line">412</div><div class="line">413</div><div class="line">414</div><div class="line">415</div><div class="line">416</div><div class="line">417</div><div class="line">418</div><div class="line">419</div><div class="line">420</div><div class="line">421</div><div class="line">422</div><div class="line">423</div><div class="line">424</div><div class="line">425</div><div class="line">426</div><div class="line">427</div><div class="line">428</div><div class="line">429</div><div class="line">430</div><div class="line">431</div><div class="line">432</div><div class="line">433</div><div class="line">434</div><div class="line">435</div><div class="line">436</div><div class="line">437</div><div class="line">438</div><div class="line">439</div><div class="line">440</div><div class="line">441</div><div class="line">442</div><div class="line">443</div><div class="line">444</div><div class="line">445</div><div class="line">446</div><div class="line">447</div><div class="line">448</div><div class="line">449</div><div class="line">450</div><div class="line">451</div><div class="line">452</div><div class="line">453</div><div class="line">454</div><div class="line">455</div><div class="line">456</div><div class="line">457</div><div class="line">458</div><div class="line">459</div><div class="line">460</div><div class="line">461</div><div class="line">462</div><div class="line">463</div><div class="line">464</div><div class="line">465</div><div class="line">466</div><div class="line">467</div><div class="line">468</div><div class="line">469</div><div class="line">470</div><div class="line">471</div><div class="line">472</div><div class="line">473</div><div class="line">474</div><div class="line">475</div><div class="line">476</div><div class="line">477</div><div class="line">478</div><div class="line">479</div><div class="line">480</div><div class="line">481</div><div class="line">482</div><div class="line">483</div><div class="line">484</div><div class="line">485</div><div class="line">486</div><div class="line">487</div><div class="line">488</div><div class="line">489</div><div class="line">490</div></pre></td><td class="code"><pre><div class="line"><span class="meta">####################################################################</span></div><div class="line"><span class="meta">## Copyright(c) Oracle Corporation 1998,2008. All rights reserved.##</span></div><div class="line"><span class="meta">##                                                                ##</span></div><div class="line"><span class="meta">## Specify values for the variables listed below to customize     ##</span></div><div class="line"><span class="meta">## your installation.                                             ##</span></div><div class="line"><span class="meta">##                                                                ##</span></div><div class="line"><span class="meta">## Each variable is associated with a comment. The comment        ##</span></div><div class="line"><span class="meta">## can help to populate the variables with the appropriate        ##</span></div><div class="line"><span class="meta">## values.                            ##</span></div><div class="line"><span class="meta">##                                                                ##</span></div><div class="line"><span class="meta">## IMPORTANT NOTE: This file contains plain text passwords and    ##</span></div><div class="line"><span class="meta">## should be secured to have read permission only by oracle user  ##</span></div><div class="line"><span class="meta">## or db administrator who owns this installation.                ##</span></div><div class="line"><span class="meta">##                                                                ##</span></div><div class="line"><span class="meta">####################################################################</span></div><div class="line"></div><div class="line"><span class="meta">#标注响应文件版本，这个版本必须和要#安装的数据库版本相同，安装检验无法通过,不能更改</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Do not change the following system generated value. </span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0</div><div class="line"></div><div class="line"><span class="meta">#选择安装类型</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the installation option.</span></div><div class="line"><span class="meta"># It can be one of the following:</span></div><div class="line"><span class="meta"># 1. INSTALL_DB_SWONLY  只装数据库软件</span></div><div class="line"><span class="meta"># 2. INSTALL_DB_AND_CONFIG 安装数据库软件并建库</span></div><div class="line"><span class="meta"># 3. UPGRADE_DB 升级数据库</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.option=INSTALL_DB_SWONLY</div><div class="line"></div><div class="line"><span class="meta">#指定操作系统主机名，通过hostname命令获得</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the hostname of the system as set during the install. It can be used</span></div><div class="line"><span class="meta"># to force the installation to use an alternative hostname rather than using the</span></div><div class="line"><span class="meta"># first hostname found on the system. (e.g., for systems with multiple hostnames </span></div><div class="line"><span class="meta"># and network interfaces)</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">ORACLE_HOSTNAME=dbserver</div><div class="line"></div><div class="line"><span class="meta">#指定oracle inventory目录的所有者，通常会是oinstall或者dba</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the Unix group to be set for the inventory directory.  </span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">UNIX_GROUP_NAME=oinstall</div><div class="line"></div><div class="line"><span class="meta">#指定产品清单oracle inventory目录的路径,如果是Win平台下可以省略</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the location which holds the inventory files.</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">INVENTORY_LOCATION=/home/app/oraInventory</div><div class="line"></div><div class="line"><span class="meta">#指定数据库语言,可以选择多个,使用逗号分开</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the languages in which the components will be installed.             </span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># en   : English                  ja   : Japanese                  </span></div><div class="line"><span class="meta"># fr   : French                   ko   : Korean                    </span></div><div class="line"><span class="meta"># ar   : Arabic                   es   : Latin American Spanish    </span></div><div class="line"><span class="meta"># bn   : Bengali                  lv   : Latvian                   </span></div><div class="line"><span class="meta"># pt_BR: Brazilian Portuguese     lt   : Lithuanian                </span></div><div class="line"><span class="meta"># bg   : Bulgarian                ms   : Malay                     </span></div><div class="line"><span class="meta"># fr_CA: Canadian French          es_MX: Mexican Spanish           </span></div><div class="line"><span class="meta"># ca   : Catalan                  no   : Norwegian                 </span></div><div class="line"><span class="meta"># hr   : Croatian                 pl   : Polish                    </span></div><div class="line"><span class="meta"># cs   : Czech                    pt   : Portuguese                </span></div><div class="line"><span class="meta"># da   : Danish                   ro   : Romanian                  </span></div><div class="line"><span class="meta"># nl   : Dutch                    ru   : Russian                   </span></div><div class="line"><span class="meta"># ar_EG: Egyptian                 zh_CN: Simplified Chinese        </span></div><div class="line"><span class="meta"># en_GB: English (Great Britain)  sk   : Slovak                    </span></div><div class="line"><span class="meta"># et   : Estonian                 sl   : Slovenian                 </span></div><div class="line"><span class="meta"># fi   : Finnish                  es_ES: Spanish                   </span></div><div class="line"><span class="meta"># de   : German                   sv   : Swedish                   </span></div><div class="line"><span class="meta"># el   : Greek                    th   : Thai                      </span></div><div class="line"><span class="meta"># iw   : Hebrew                   zh_TW: Traditional Chinese       </span></div><div class="line"><span class="meta"># hu   : Hungarian                tr   : Turkish                   </span></div><div class="line"><span class="meta"># is   : Icelandic                uk   : Ukrainian                 </span></div><div class="line"><span class="meta"># in   : Indonesian               vi   : Vietnamese                </span></div><div class="line"><span class="meta"># it   : Italian                                                   </span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># Example : SELECTED_LANGUAGES=en,fr,ja</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">SELECTED_LANGUAGES=en,zh_CN</div><div class="line"></div><div class="line"><span class="meta">#设置oracle的安装目录</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the complete path of the Oracle Home.</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">ORACLE_HOME=/home/app/oracle/product/<span class="number">11.2</span><span class="number">.0</span><span class="number">.4</span>/db_1</div><div class="line"></div><div class="line"><span class="meta">#设置oracle base目录</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the complete path of the Oracle Base. </span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">ORACLE_BASE=/home/app</div><div class="line"></div><div class="line"><span class="meta">#设定数据库的安装版本</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the installation edition of the component.                        </span></div><div class="line"><span class="meta">#                                                             </span></div><div class="line"><span class="meta"># The value should contain only one of these choices.        </span></div><div class="line"><span class="meta"># EE     : Enterprise Edition  企业版                               </span></div><div class="line"><span class="meta"># SE     : Standard Edition    标准版                              </span></div><div class="line"><span class="meta"># SEONE  : Standard Edition One 标准版1</span></div><div class="line"><span class="meta"># PE     : Personal Edition (WINDOWS ONLY) 个人版</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.InstallEdition=EE</div><div class="line"></div><div class="line"><span class="meta">#是否自定义oracle的组件，如果选择false则会使用默认的组件</span></div><div class="line"><span class="meta">#如果选择true，则需要在下面罗列出需要安装的组件，再不是很清楚需要的时候，</span></div><div class="line"><span class="meta">#建议使用true，然后把所有的都安装上。</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># This variable is used to enable or disable custom install.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># true  : Components mentioned as part of 'customComponents' property</span></div><div class="line"><span class="meta">#         are considered for install.</span></div><div class="line"><span class="meta"># false : Value for 'customComponents' is not considered.</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.isCustomInstall=<span class="literal">false</span></div><div class="line"></div><div class="line"><span class="meta">#oracle的可选安装组件</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># This variable is considered only if 'IsCustomInstall' is set to true. </span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># Description: List of Enterprise Edition Options you would like to install.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta">#              The following choices are available. You may specify any</span></div><div class="line"><span class="meta">#              combination of these choices.  The components you choose should</span></div><div class="line"><span class="meta">#              be specified in the form "internal-component-name:version"</span></div><div class="line"><span class="meta">#              Below is a list of components you may specify to install.</span></div><div class="line"><span class="meta">#        </span></div><div class="line"><span class="meta">#              oracle.oraolap:11.2.0.4.0 - Oracle OLAP</span></div><div class="line"><span class="meta">#              oracle.rdbms.dm:11.2.0.4.0 - Oracle Data Mining RDBMS Files</span></div><div class="line"><span class="meta">#              oracle.rdbms.dv:11.2.0.4.0- Oracle Database Vault option</span></div><div class="line"><span class="meta">#              oracle.rdbms.lbac:11.2.0.4.0 - Oracle Label Security</span></div><div class="line"><span class="meta">#              oracle.rdbms.partitioning:11.2.0.4.0 - Oracle Partitioning</span></div><div class="line"><span class="meta">#              oracle.rdbms.rat:11.2.0.4.0 - Oracle Real Application Testing</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.customComponents=</div><div class="line"></div><div class="line"><span class="meta">###############################################################################</span></div><div class="line"><span class="meta">#                                                                             #</span></div><div class="line"><span class="meta"># PRIVILEGED OPERATING SYSTEM GROUPS                                          #</span></div><div class="line"><span class="meta"># ------------------------------------------                                  #</span></div><div class="line"><span class="meta"># Provide values for the OS groups to which OSDBA and OSOPER privileges       #</span></div><div class="line"><span class="meta"># needs to be granted. If the install is being performed as a member of the   #     </span></div><div class="line"><span class="meta"># group "dba", then that will be used unless specified otherwise below.       #</span></div><div class="line"><span class="meta">#                                                                             #</span></div><div class="line"><span class="meta">###############################################################################</span></div><div class="line"></div><div class="line"><span class="meta">#指定oracle dba组</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># The DBA_GROUP is the OS group which is to be granted OSDBA privileges.</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.DBA_GROUP=dba</div><div class="line"></div><div class="line"><span class="meta">#指定oracle oper组</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># The OPER_GROUP is the OS group which is to be granted OSOPER privileges.</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.OPER_GROUP=oinstall</div><div class="line"></div><div class="line"><span class="meta">#如果是RAC的安装，在这里指定所有的节点</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the cluster node names selected during the installation.</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.CLUSTER_NODES=</div><div class="line"></div><div class="line"><span class="meta">#指定是否rac安装</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># This variable is used to enable or disable RAC One Node install.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta">#   - true  : Value of RAC One Node service name is used.</span></div><div class="line"><span class="meta">#   - false : Value of RAC One Node service name is not used.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># If left blank, it will be assumed to be false.</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.isRACOneInstall=<span class="literal">false</span></div><div class="line"></div><div class="line"><span class="meta">#指定Rac一个节点服务名称</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the name for RAC One Node Service. </span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.racOneServiceName=</div><div class="line"></div><div class="line"><span class="meta">#指定数据库类型</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the type of database to create.</span></div><div class="line"><span class="meta"># It can be one of the following:</span></div><div class="line"><span class="meta">#   - GENERAL_PURPOSE/TRANSACTION_PROCESSING  通用数据库              </span></div><div class="line"><span class="meta">#   - DATA_WAREHOUSE                          数据仓库      </span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.type=GENERAL_PURPOSE</div><div class="line"></div><div class="line"><span class="meta">#数据库全局名称</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the Starter Database Global Database Name. </span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.globalDBName=orcl</div><div class="line"></div><div class="line"><span class="meta">#数据库实例名称</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the Starter Database SID.</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.SID=orcl</div><div class="line"></div><div class="line"><span class="meta">#字符集,ZHS16GBK汉字2个字节建议使用</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the Starter Database character set.</span></div><div class="line"><span class="meta">#                                               </span></div><div class="line"><span class="meta">#  One of the following</span></div><div class="line"><span class="meta">#  AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2,</span></div><div class="line"><span class="meta">#  EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257,</span></div><div class="line"><span class="meta">#  BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6,</span></div><div class="line"><span class="meta">#  AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8,</span></div><div class="line"><span class="meta">#  IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE,</span></div><div class="line"><span class="meta">#  KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950,</span></div><div class="line"><span class="meta">#  ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.characterSet=ZHS16GBK</div><div class="line"></div><div class="line"><span class="meta">#内存自动管理</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># This variable should be set to true if Automatic Memory Management </span></div><div class="line"><span class="meta"># in Database is desired.</span></div><div class="line"><span class="meta"># If Automatic Memory Management is not desired, and memory allocation</span></div><div class="line"><span class="meta"># is to be done manually, then set it to false.</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.memoryOption=<span class="literal">true</span></div><div class="line"></div><div class="line"><span class="meta">#数据库内存最大值</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the total memory allocation for the database. Value(in MB) should be</span></div><div class="line"><span class="meta"># at least 256 MB, and should not exceed the total physical memory available </span></div><div class="line"><span class="meta"># on the system.</span></div><div class="line"><span class="meta"># Example: oracle.install.db.config.starterdb.memoryLimit=512</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.memoryLimit=<span class="number">6357</span></div><div class="line"></div><div class="line"><span class="meta">#是否安装样例</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># This variable controls whether to load Example Schemas onto</span></div><div class="line"><span class="meta"># the starter database or not.</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.installExampleSchemas=<span class="literal">false</span></div><div class="line"></div><div class="line"><span class="meta">#是否启用安全设置</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># This variable includes enabling audit settings, configuring password profiles</span></div><div class="line"><span class="meta"># and revoking some grants to public. These settings are provided by default. </span></div><div class="line"><span class="meta"># These settings may also be disabled.     </span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.enableSecuritySettings=<span class="literal">true</span></div><div class="line"></div><div class="line"><span class="meta">###############################################################################</span></div><div class="line"><span class="meta">#                                                                             #</span></div><div class="line"><span class="meta"># Passwords can be supplied for the following four schemas in the         #</span></div><div class="line"><span class="meta"># starter database:                                   #</span></div><div class="line"><span class="meta">#   SYS                                                                       #</span></div><div class="line"><span class="meta">#   SYSTEM                                                                    #</span></div><div class="line"><span class="meta">#   SYSMAN (used by Enterprise Manager)                                       #</span></div><div class="line"><span class="meta">#   DBSNMP (used by Enterprise Manager)                                       #</span></div><div class="line"><span class="meta">#                                                                             #</span></div><div class="line"><span class="meta"># Same password can be used for all accounts (not recommended)            #</span></div><div class="line"><span class="meta"># or different passwords for each account can be provided (recommended)       #</span></div><div class="line"><span class="meta">#                                                                             #</span></div><div class="line"><span class="meta">###############################################################################</span></div><div class="line"></div><div class="line"><span class="meta">#默认的所有用户的密码</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># This variable holds the password that is to be used for all schemas in the</span></div><div class="line"><span class="meta"># starter database.</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.password.ALL=manager</div><div class="line"></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the SYS password for the starter database.</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.password.SYS=</div><div class="line"></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the SYSTEM password for the starter database.</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.password.SYSTEM=</div><div class="line"></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the SYSMAN password for the starter database.</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.password.SYSMAN=</div><div class="line"></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the DBSNMP password for the starter database.</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.password.DBSNMP=</div><div class="line"></div><div class="line"><span class="meta">#设定数据库管理类型</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the management option to be selected for the starter database. </span></div><div class="line"><span class="meta"># It can be one of the following:</span></div><div class="line"><span class="meta">#   - GRID_CONTROL   网格集中管理</span></div><div class="line"><span class="meta">#   - DB_CONTROL     本地管理</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.control=DB_CONTROL</div><div class="line"></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the Management Service to use if Grid Control is selected to manage </span></div><div class="line"><span class="meta"># the database.      </span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=</div><div class="line"></div><div class="line"><span class="meta">###############################################################################</span></div><div class="line"><span class="meta">#                                                                             #</span></div><div class="line"><span class="meta"># SPECIFY BACKUP AND RECOVERY OPTIONS                                         #</span></div><div class="line"><span class="meta"># ------------------------------------                                    #</span></div><div class="line"><span class="meta"># Out-of-box backup and recovery options for the database can be mentioned    #</span></div><div class="line"><span class="meta"># using the entries below.                            # </span></div><div class="line"><span class="meta">#                                                                             #</span></div><div class="line"><span class="meta">###############################################################################</span></div><div class="line"></div><div class="line"><span class="meta">#自动备份</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># This variable is to be set to false if automated backup is not required. Else </span></div><div class="line"><span class="meta"># this can be set to true.</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.automatedBackup.enable=<span class="literal">false</span></div><div class="line"></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Regardless of the type of storage that is chosen for backup and recovery, if </span></div><div class="line"><span class="meta"># automated backups are enabled, a job will be scheduled to run daily to backup </span></div><div class="line"><span class="meta"># the database. This job will run as the operating system user that is </span></div><div class="line"><span class="meta"># specified in this variable.</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.automatedBackup.osuid=</div><div class="line"></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Regardless of the type of storage that is chosen for backup and recovery, if </span></div><div class="line"><span class="meta"># automated backups are enabled, a job will be scheduled to run daily to backup </span></div><div class="line"><span class="meta"># the database. This job will run as the operating system user specified by the </span></div><div class="line"><span class="meta"># above entry. The following entry stores the password for the above operating </span></div><div class="line"><span class="meta"># system user.</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.automatedBackup.ospwd=</div><div class="line"></div><div class="line"><span class="meta">#存储类型</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the type of storage to use for the database.</span></div><div class="line"><span class="meta"># It can be one of the following:</span></div><div class="line"><span class="meta">#   - FILE_SYSTEM_STORAGE  文件</span></div><div class="line"><span class="meta">#   - ASM_STORAGE          asm自动管理</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE</div><div class="line"></div><div class="line"><span class="meta">#数据库文件目录</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the database file location which is a directory for datafiles, control</span></div><div class="line"><span class="meta"># files, redo logs.         </span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE </span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/home/app/oradata</div><div class="line"></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the backup and recovery location.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE </span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=</div><div class="line"></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the existing ASM disk groups to be used for storage.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># Applicable only when oracle.install.db.config.starterdb.storageType=ASM_STORAGE</span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.asm.diskGroup=</div><div class="line"></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the password for ASMSNMP user of the ASM instance.                 </span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE </span></div><div class="line"><span class="meta">#-------------------------------------------------------------------------------</span></div><div class="line">oracle.install.db.config.asm.ASMSNMPPassword=</div><div class="line"></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the My Oracle Support Account Username.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta">#  Example   : MYORACLESUPPORT_USERNAME=abc@oracle.com</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">MYORACLESUPPORT_USERNAME=</div><div class="line"></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the My Oracle Support Account Username password.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># Example    : MYORACLESUPPORT_PASSWORD=password</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">MYORACLESUPPORT_PASSWORD=</div><div class="line"></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify whether to enable the user to set the password for</span></div><div class="line"><span class="meta"># My Oracle Support credentials. The value can be either true or false.</span></div><div class="line"><span class="meta"># If left blank it will be assumed to be false.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># Example    : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">SECURITY_UPDATES_VIA_MYORACLESUPPORT=<span class="literal">false</span></div><div class="line"></div><div class="line"><span class="meta">#是否配置安全更新，此处必须设置true</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify whether user doesn't want to configure Security Updates.</span></div><div class="line"><span class="meta"># The value for this variable should be true if you don't want to configure</span></div><div class="line"><span class="meta"># Security Updates, false otherwise.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># The value can be either true or false. If left blank it will be assumed</span></div><div class="line"><span class="meta"># to be false.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># Example    : DECLINE_SECURITY_UPDATES=false</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">DECLINE_SECURITY_UPDATES=<span class="literal">true</span></div><div class="line"></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the Proxy server name. Length should be greater than zero.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># Example    : PROXY_HOST=proxy.domain.com </span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">PROXY_HOST=</div><div class="line"></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the proxy port number. Should be Numeric and at least 2 chars.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># Example    : PROXY_PORT=25</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">PROXY_PORT=</div><div class="line"></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the proxy user name. Leave PROXY_USER and PROXY_PWD</span></div><div class="line"><span class="meta"># blank if your proxy server requires no authentication.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># Example    : PROXY_USER=username</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">PROXY_USER=</div><div class="line"></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the proxy password. Leave PROXY_USER and PROXY_PWD  </span></div><div class="line"><span class="meta"># blank if your proxy server requires no authentication.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># Example    : PROXY_PWD=password</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">PROXY_PWD=</div><div class="line"></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the proxy realm. </span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># Example    : PROXY_REALM=metalink</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">PROXY_REALM=</div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the Oracle Support Hub URL. </span></div><div class="line"><span class="meta"># </span></div><div class="line"><span class="meta"># Example    : COLLECTOR_SUPPORTHUB_URL=https://orasupporthub.company.com:8080/</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">COLLECTOR_SUPPORTHUB_URL=</div><div class="line"></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the auto-updates option. It can be one of the following:</span></div><div class="line"><span class="meta">#   - MYORACLESUPPORT_DOWNLOAD</span></div><div class="line"><span class="meta">#   - OFFLINE_UPDATES</span></div><div class="line"><span class="meta">#   - SKIP_UPDATES</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">oracle.installer.autoupdates.option=SKIP_UPDATES</div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># In case MYORACLESUPPORT_DOWNLOAD option is chosen, specify the location where</span></div><div class="line"><span class="meta"># the updates are to be downloaded.</span></div><div class="line"><span class="meta"># In case OFFLINE_UPDATES option is chosen, specify the location where the updates </span></div><div class="line"><span class="meta"># are present.</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">oracle.installer.autoupdates.downloadUpdatesLoc=</div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the My Oracle Support Account Username which has the patches download privileges  </span></div><div class="line"><span class="meta"># to be used for software updates.</span></div><div class="line"><span class="meta">#  Example   : AUTOUPDATES_MYORACLESUPPORT_USERNAME=abc@oracle.com</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">AUTOUPDATES_MYORACLESUPPORT_USERNAME=</div><div class="line"></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line"><span class="meta"># Specify the My Oracle Support Account Username password which has the patches download privileges  </span></div><div class="line"><span class="meta"># to be used for software updates.</span></div><div class="line"><span class="meta">#</span></div><div class="line"><span class="meta"># Example    : AUTOUPDATES_MYORACLESUPPORT_PASSWORD=password</span></div><div class="line"><span class="meta">#------------------------------------------------------------------------------</span></div><div class="line">AUTOUPDATES_MYORACLESUPPORT_PASSWORD=</div></pre></td></tr></table></figure><p></p><p><a href="http://static.lehoon.cn/install.rsp" target="_blank" rel="external">应答文件下载</a></p><h2 id="开始安装"><a href="#开始安装" class="headerlink" title="开始安装"></a>开始安装</h2><p>1、使用oracle用户登录，然后执行安装命令<br></p><figure class="highlight haml"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div></pre></td><td class="code"><pre><div class="line">./runInstaller -ignoreSysPrereqs -silent -noconfig -responseFile /opt/database/response/install.rsp</div><div class="line"></div><div class="line">参数介绍：</div><div class="line">-<span class="ruby">ignoreSysPrereqs：让oracle忽略系统检查，因为oracle官方声明只支持Linux服务器产品，所以要在非服务器的Linux上安装就必须指定该参数</span></div><div class="line">-<span class="ruby">silent：表示已静默安装的方式安装，不会有任何提示</span></div><div class="line">-<span class="ruby">noconfig：表示不运行配置助手netca</span></div><div class="line">-<span class="ruby">force：表示安装到一个非空目录</span></div><div class="line">-<span class="ruby">responseFile：表示使用哪个响应文件，必须使用绝对路径</span></div></pre></td></tr></table></figure><p></p><p>2、等待安装<br>执行命令后，如果没有不满足的条件，则会进行安装，如下：<br></p><figure class="highlight groovy"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div></pre></td><td class="code"><pre><div class="line">正在启动 Oracle Universal Installer...</div><div class="line"></div><div class="line">检查临时空间: 必须大于 <span class="number">120</span> MB。   实际为 <span class="number">135861</span> MB    通过</div><div class="line">检查交换空间: 必须大于 <span class="number">150</span> MB。   实际为 <span class="number">7935</span> MB    通过</div><div class="line">准备从以下地址启动 Oracle Universal Installer <span class="regexp">/tmp/</span>OraInstall2016<span class="number">-10</span><span class="number">-10</span>_09<span class="number">-22</span><span class="number">-45</span>PM. 请稍候...</div><div class="line">[WARNING] [INS<span class="number">-32055</span>] 主产品清单位于 Oracle 基目录中。</div><div class="line">   原因: 主产品清单位于 Oracle 基目录中。</div><div class="line">   操作: Oracle 建议将此主产品清单放置在 Oracle 基目录之外的位置中。</div><div class="line">[WARNING] [INS<span class="number">-30011</span>] 输入的 ADMIN 口令不符合 Oracle 建议的标准。</div><div class="line">   原因: Oracle 建议输入的口令应该至少长为 <span class="number">8</span> 个字符, 至少包含 <span class="number">1</span> 个大写字符, <span class="number">1</span> 个小写字符和 <span class="number">1</span> 个数字 [<span class="number">0</span><span class="number">-9</span>]。</div><div class="line">   操作: 提供符合 Oracle 建议标准的口令。</div><div class="line">[WARNING] [INS<span class="number">-13014</span>] 目标环境不满足一些可选要求。</div><div class="line">   原因: 不满足一些可选的先决条件。有关详细信息, 请查看日志。<span class="regexp">/tmp/</span>OraInstall2016<span class="number">-10</span><span class="number">-10</span>_09<span class="number">-22</span><span class="number">-45</span>PM/installActions2016<span class="number">-10</span><span class="number">-10</span>_09<span class="number">-22</span><span class="number">-45</span>PM.log</div><div class="line">   操作: 从日志 <span class="regexp">/tmp/</span>OraInstall2016<span class="number">-10</span><span class="number">-10</span>_09<span class="number">-22</span><span class="number">-45</span>PM/installActions2016<span class="number">-10</span><span class="number">-10</span>_09<span class="number">-22</span><span class="number">-45</span>PM.log 中确定失败的先决条件检查列表。然后, 从日志文件或安装手册中查找满足这些先决条件的适当配置, 并手动进行修复。</div><div class="line">可以在以下位置找到本次安装会话的日志:</div><div class="line"> <span class="regexp">/home/</span>app<span class="regexp">/oraInventory/</span>logs/installActions2016<span class="number">-10</span><span class="number">-10</span>_09<span class="number">-22</span><span class="number">-45</span>PM.log</div><div class="line">Oracle Database <span class="number">11</span>g 的 安装 已成功。</div><div class="line">请查看 <span class="string">'/home/app/oraInventory/logs/silentInstall2016-10-10_09-22-45PM.log'</span> 以获取详细资料。</div><div class="line"></div><div class="line">以 root 用户的身份执行以下脚本:</div><div class="line">        <span class="number">1.</span> <span class="regexp">/home/</span>app<span class="regexp">/oraInventory/</span>orainstRoot.sh</div><div class="line">        <span class="number">2.</span> <span class="regexp">/home/</span>app<span class="regexp">/oracle/</span>product<span class="regexp">/11.2.0.4/</span>db_1/root.sh</div><div class="line"></div><div class="line"></div><div class="line">以安装用户的身份执行以下脚本来完成配置。</div><div class="line">        <span class="number">1.</span> <span class="regexp">/home/</span>app<span class="regexp">/oracle/</span>product<span class="regexp">/11.2.0.4/</span>db_1<span class="regexp">/cfgtoollogs/</span>configToolAllCommands RESPONSE_FILE=&lt;response_file&gt;</div><div class="line"></div><div class="line">        注:</div><div class="line">        <span class="number">1.</span> 此脚本必须在已运行安装程序的同一主机上运行。</div><div class="line">        <span class="number">2.</span> 对于需要口令的 Configuration Assistant, 此脚本需要一个较小的口令属性文件 (请参阅安装指南文档)。</div><div class="line"></div><div class="line"></div><div class="line">Successfully Setup Software.</div></pre></td></tr></table></figure><p></p><h2 id="系统初始化"><a href="#系统初始化" class="headerlink" title="系统初始化"></a>系统初始化</h2><p>1、使用root用户登录<br>2、运行以下2个脚本<br></p><figure class="highlight stata"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line"><span class="keyword">sh</span> /home/<span class="keyword">app</span>/oraInventory/orainstRoot.<span class="keyword">sh</span></div><div class="line"><span class="keyword">sh</span> /home/<span class="keyword">app</span>/oracle/product/11.2.0.4/db_1/root.<span class="keyword">sh</span></div></pre></td></tr></table></figure><p></p><h2 id="安装网络监听器"><a href="#安装网络监听器" class="headerlink" title="安装网络监听器"></a>安装网络监听器</h2><p>1、使用oracle登录系统<br>2、没有网络监听器，客户端就无法通过网络连接Oralce服务器。要在命令行安装网络监听器，也只能使用静默模式<br>3、执行以下命令：<br></p><figure class="highlight gradle"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ORACLE_HOME<span class="regexp">/bin/</span>netca <span class="regexp">/silent /</span>responseFile <span class="regexp">/mnt/</span>hgfs<span class="regexp">/tmp/</span>oracle11g<span class="regexp">/response/</span>netca.rsp</div></pre></td></tr></table></figure><p></p><p>4、查看监听器状态<br>执行命令：<br></p><figure class="highlight gams"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div></pre></td><td class="code"><pre><div class="line"><span class="meta"><span class="meta-keyword">$ORACLE</span>_HOME/bin/lsnrctl status</span></div><div class="line">LSNRCTL <span class="keyword">for</span> Linux: Version <span class="number">11.2</span><span class="number">.0</span><span class="number">.4</span><span class="number">.0</span> - Production on <span class="number">11</span>-OCT<span class="number">-2016</span> <span class="number">00</span>:<span class="number">20</span>:<span class="number">54</span></div><div class="line"></div><div class="line">Copyright (c) <span class="number">1991</span>, <span class="number">2013</span>, Oracle.  <span class="keyword">All</span> rights reserved.</div><div class="line"></div><div class="line">Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))</div><div class="line">STATUS of the LISTENER</div><div class="line">------------------------</div><div class="line"><span class="keyword">Alias</span>                     LISTENER</div><div class="line">Version                   TNSLSNR <span class="keyword">for</span> Linux: Version <span class="number">11.2</span><span class="number">.0</span><span class="number">.4</span><span class="number">.0</span> - Production</div><div class="line">Start Date                <span class="number">10</span>-OCT<span class="number">-2016</span> <span class="number">21</span>:<span class="number">36</span>:<span class="number">02</span></div><div class="line">Uptime                    <span class="number">0</span> days <span class="number">2</span> hr. <span class="number">44</span> <span class="built-in">min</span>. <span class="number">55</span> sec</div><div class="line">Trace Level               off</div><div class="line">Security                  ON: Local OS Authentication</div><div class="line">SNMP                      OFF</div><div class="line">Listener <span class="keyword">Parameter</span> File   /home/<span class="comment">app</span>/oracle/<span class="comment">product</span>/<span class="number">11.2</span><span class="number">.0</span><span class="number">.4</span>/<span class="comment">db_1</span>/network/<span class="comment">admin</span>/listener.ora</div><div class="line">Listener <span class="built-in">Log</span> <span class="keyword">File</span>         /<span class="comment">home</span>/app/<span class="comment">diag</span>/tnslsnr/<span class="comment">dbserver</span>/listener/<span class="comment">alert</span>/<span class="built-in">log</span>.xml</div><div class="line">Listening Endpoints Summary...</div><div class="line">  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))</div><div class="line">  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbserver)(PORT=<span class="number">1521</span>)))</div><div class="line">The listener supports <span class="keyword">no</span> services</div><div class="line">The command completed successfully</div></pre></td></tr></table></figure><p></p><h2 id="安装数据库"><a href="#安装数据库" class="headerlink" title="安装数据库"></a>安装数据库</h2><p>1、以root用户登录系统<br>2、编辑安装目录response下的应答文件dbca.rsp文件，修改以下项：<br></p><figure class="highlight ini"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div></pre></td><td class="code"><pre><div class="line"><span class="attr">RESPONSEFILE_VERSION</span> = <span class="string">"11.2.0"</span>  //不能更改</div><div class="line"><span class="attr">OPERATION_TYPE</span> = <span class="string">"createDatabase"</span></div><div class="line"><span class="attr">GDBNAME</span>=<span class="string">"orcl"</span> 全局数据库的名字=SID+主机域名，会影响生成的文件夹名称</div><div class="line"><span class="attr">SID</span>=<span class="string">"orcl"</span> 数据库的SID</div><div class="line"><span class="attr">TEMPLATENAME</span> = <span class="string">"General_Purpose.dbc"</span> //建库用的模板文件</div><div class="line"><span class="attr">SYSPASSWORD</span>=<span class="string">"manager"</span>    SYS用户的初始密码，我设置为manager</div><div class="line"><span class="attr">SYSTEMPASSWORD</span>=<span class="string">"manager"</span>    SYSTEM用户的初始密码，我设置为manager</div><div class="line"><span class="attr">DATAFILEDESTINATION</span> = /app/oradata //数据文件存放目录</div><div class="line"><span class="attr">RECOVERYAREADESTINATION</span>=/app/oradata_back //恢复数据存放目录</div><div class="line"><span class="attr">CHARACTERSET</span>=<span class="string">"ZHS16GBK"</span> 数据库字符集,重要!!!! 建库后一般不能更改（中文为 ZHS16GBK）</div><div class="line"><span class="attr">TOTALMEMORY</span> = <span class="string">"1000"</span>  //oracle内存<span class="number">0000</span>MB</div></pre></td></tr></table></figure><p></p><p>3、使用oracle账户执行安装命令<br></p><figure class="highlight dts"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">dbca -silent -responseFile <span class="meta-keyword">/opt/</span>database<span class="meta-keyword">/response/</span>dbca.rsp -cloneTemplate</div></pre></td></tr></table></figure><p></p><p>4、系统提示信息<br></p><figure class="highlight erlang-repl"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div></pre></td><td class="code"><pre><div class="line">复制数据库文件</div><div class="line"><span class="number">1</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">3</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">11</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">18</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">26</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">37</span><span class="comment">% 已完成</span></div><div class="line">正在创建并启动 Oracle 实例</div><div class="line"><span class="number">40</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">45</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">50</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">55</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">56</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">60</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">62</span><span class="comment">% 已完成</span></div><div class="line">正在进行数据库创建</div><div class="line"><span class="number">66</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">70</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">73</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">85</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">96</span><span class="comment">% 已完成</span></div><div class="line"><span class="number">100</span><span class="comment">% 已完成</span></div><div class="line">有关详细信息, 请参阅日志文件 <span class="string">"/home/app/cfgtoollogs/dbca/orcl/orcl.log"</span>。</div></pre></td></tr></table></figure><p></p><h2 id="设置自动启动"><a href="#设置自动启动" class="headerlink" title="设置自动启动"></a>设置自动启动</h2><p>修改/etc/oratab文件，设置自动启动,把N修改为Y<br></p><figure class="highlight groovy"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">修改前：</div><div class="line"><span class="string">orcl:</span><span class="regexp">/home/</span>app<span class="regexp">/oracle/</span>product<span class="regexp">/11.2.0.4/</span><span class="string">db_1:</span>N</div><div class="line">修改后：</div><div class="line"><span class="string">orcl:</span><span class="regexp">/home/</span>app<span class="regexp">/oracle/</span>product<span class="regexp">/11.2.0.4/</span><span class="string">db_1:</span>Y</div></pre></td></tr></table></figure><p></p><p>这样数据库就会在oracle服务启动起来后自动启动了。</p><h2 id="启动关闭数据库"><a href="#启动关闭数据库" class="headerlink" title="启动关闭数据库"></a>启动关闭数据库</h2><p>以oracle身份登录系统，执行以下操作：</p><h3 id="监听器启动"><a href="#监听器启动" class="headerlink" title="监听器启动"></a>监听器启动</h3><p>检查监听器是否启动，执行命令<br></p><figure class="highlight gams"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line"><span class="meta"><span class="meta-keyword">$ORACLE</span>_HOME/bin/lsnrctl status</span></div></pre></td></tr></table></figure><p></p><p>没有启动，可以输入启动命令<br></p><figure class="highlight gams"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line"><span class="meta"><span class="meta-keyword">$ORACLE</span>_HOME/bin/lsnrctl start</span></div></pre></td></tr></table></figure><p></p><h3 id="启动oracel实例"><a href="#启动oracel实例" class="headerlink" title="启动oracel实例"></a>启动oracel实例</h3><p>1、sqlplus启动<br>使用sysdba身份登录sqlplus，输入：<br></p><figure class="highlight dart"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">sqlplus sys/manager<span class="meta">@orcl</span> <span class="keyword">as</span> sysdba</div><div class="line">登录后输入：</div><div class="line">sql&gt;statuup</div><div class="line">启动数据库</div></pre></td></tr></table></figure><p></p><p>2、脚本启动<br>通过$ORACLE_HOME/bin/dbstart 启动数据库实例<br>此方法通过读取/etc/oratab中查找SID的数据库实例启动。</p><h3 id="关闭oracel实例"><a href="#关闭oracel实例" class="headerlink" title="关闭oracel实例"></a>关闭oracel实例</h3><p>1、sqlplus关闭<br>使用sysdba身份登录sqlplus，输入：<br></p><figure class="highlight autoit"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">sqlplus sys/manager<span class="symbol">@orcl</span> as sysdba</div><div class="line">登录后输入：</div><div class="line">sql&gt;<span class="built_in">shutdown</span> immediate</div><div class="line">关闭数据库</div></pre></td></tr></table></figure><p></p><p>2、脚本关闭<br>通过$ORACLE_HOME/bin/dbstart 关闭数据库实例<br>此方法通过读取/etc/oratab中查找SID的数据库实例关闭。</p><h3 id="关闭监听"><a href="#关闭监听" class="headerlink" title="关闭监听"></a>关闭监听</h3><p>$ORACLE_HOME/bin/lsnrctl stop</p><h2 id="使用说明"><a href="#使用说明" class="headerlink" title="使用说明"></a>使用说明</h2><p>1、根据需求，首先创建表空间、创建用户、授权用户使用的表空间。<br>2、使用用户登录后创建表、函数、存储过程、视图等完成功能需要。</p></div></div><div class="copyright"><p><span>本文标题:</span><a href="/backend/2016/10/09/centos-oracle11gr2-install.html">Centos7安装oracle11gr2</a></p><p><span>文章作者:</span><a href="/" title="访问 lehoon 的个人博客">lehoon</a></p><p><span>发布时间:</span>2016年10月09日 - 16时11分</p><p><span>最后更新:</span>2016年10月11日 - 13时45分</p><p><span>原始链接:</span><a class="post-url" href="/backend/2016/10/09/centos-oracle11gr2-install.html" title="Centos7安装oracle11gr2">http://blog.lehoon.cn/backend/2016/10/09/centos-oracle11gr2-install.html</a><span class="copy-path" data-clipboard-text="原文: http://blog.lehoon.cn/backend/2016/10/09/centos-oracle11gr2-install.html　　作者: lehoon" title="点击复制文章链接"><i class="fa fa-clipboard"></i></span><script src="/js/clipboard.min.js"></script><script>var clipboard=new Clipboard(".copy-path")</script></p><p><span>许可协议:</span><i class="fa fa-creative-commons"></i> <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/cn/" title="中国大陆 (CC BY-NC-SA 3.0 CN)" target="_blank">"署名-非商用-相同方式共享 3.0"</a> 转载请保留原文链接及作者。</p></div><nav id="article-nav"><a href="/backend/2016/10/11/oracle-materialized-view.html" id="article-nav-newer" class="article-nav-link-wrap"><strong class="article-nav-caption">&lt;</strong><div class="article-nav-title">oracle物化视图</div></a><a href="/backend/2016/10/08/gdb-miss-debuginfo.html" id="article-nav-older" class="article-nav-link-wrap"><div class="article-nav-title">gdb-miss-debuginfo</div><strong class="article-nav-caption">&gt;</strong></a></nav></article><div id="toc" class="toc-article"><strong class="toc-title">文章目录</strong><ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#更新yum源"><span class="toc-number">1.</span> <span class="toc-text">更新yum源</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#关闭selinux"><span class="toc-number">2.</span> <span class="toc-text">关闭selinux</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#关闭防火墙"><span class="toc-number">3.</span> <span class="toc-text">关闭防火墙</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#时间同步ntp"><span class="toc-number">4.</span> <span class="toc-text">时间同步ntp</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#安装开发环境"><span class="toc-number">5.</span> <span class="toc-text">安装开发环境</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#安装网络工具"><span class="toc-number">6.</span> <span class="toc-text">安装网络工具</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#修改主机名"><span class="toc-number">7.</span> <span class="toc-text">修改主机名</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#检查需要的包"><span class="toc-number">8.</span> <span class="toc-text">检查需要的包</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#创建用户"><span class="toc-number">9.</span> <span class="toc-text">创建用户</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#创建用户组"><span class="toc-number">9.1.</span> <span class="toc-text">创建用户组</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#创建用户oracle"><span class="toc-number">9.2.</span> <span class="toc-text">创建用户oracle</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#配置内核参数"><span class="toc-number">10.</span> <span class="toc-text">配置内核参数</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#配置内核参数。"><span class="toc-number">10.1.</span> <span class="toc-text">配置内核参数。</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#修改资源参数"><span class="toc-number">10.2.</span> <span class="toc-text">修改资源参数</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#创建安装目录"><span class="toc-number">11.</span> <span class="toc-text">创建安装目录</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#配置环境变量"><span class="toc-number">12.</span> <span class="toc-text">配置环境变量</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#修改全局环境变量"><span class="toc-number">12.1.</span> <span class="toc-text">修改全局环境变量</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#修改oracle环境变量"><span class="toc-number">12.2.</span> <span class="toc-text">修改oracle环境变量</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#关联设置"><span class="toc-number">13.</span> <span class="toc-text">关联设置</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#准备oracle11gr2的安装文件"><span class="toc-number">14.</span> <span class="toc-text">准备oracle11gr2的安装文件</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#oracle响应文件"><span class="toc-number">15.</span> <span class="toc-text">oracle响应文件</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#开始安装"><span class="toc-number">16.</span> <span class="toc-text">开始安装</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#系统初始化"><span class="toc-number">17.</span> <span class="toc-text">系统初始化</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#安装网络监听器"><span class="toc-number">18.</span> <span class="toc-text">安装网络监听器</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#安装数据库"><span class="toc-number">19.</span> <span class="toc-text">安装数据库</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#设置自动启动"><span class="toc-number">20.</span> <span class="toc-text">设置自动启动</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#启动关闭数据库"><span class="toc-number">21.</span> <span class="toc-text">启动关闭数据库</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#监听器启动"><span class="toc-number">21.1.</span> <span class="toc-text">监听器启动</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#启动oracel实例"><span class="toc-number">21.2.</span> <span class="toc-text">启动oracel实例</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#关闭oracel实例"><span class="toc-number">21.3.</span> <span class="toc-text">关闭oracel实例</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#关闭监听"><span class="toc-number">21.4.</span> <span class="toc-text">关闭监听</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#使用说明"><span class="toc-number">22.</span> <span class="toc-text">使用说明</span></a></li></ol></div><input type="button" id="tocButton" value="隐藏目录" title="点击按钮隐藏或者显示文章目录"><script src="http://7.url.cn/edu/jslib/comb/require-2.1.6,jquery-1.9.1.min.js"></script><script>var valueHide="隐藏目录",valueShow="显示目录";$(".left-col").is(":hidden")&&$("#tocButton").attr("value",valueShow),$("#tocButton").click(function(){$("#toc").is(":hidden")?($("#tocButton").attr("value",valueHide),$("#toc").slideDown(320)):($("#tocButton").attr("value",valueShow),$("#toc").slideUp(350))}),$(".toc").length<1&&$("#toc, #tocButton").hide()</script><div class="scroll" id="post-nav-button"><a href="/backend/2016/10/11/oracle-materialized-view.html" title="上一篇: oracle物化视图"><i class="fa fa-angle-left"></i></a><a title="文章列表"><i class="fa fa-bars"></i><i class="fa fa-times"></i></a><a href="/backend/2016/10/08/gdb-miss-debuginfo.html" title="下一篇: gdb-miss-debuginfo"><i class="fa fa-angle-right"></i></a></div><ul class="post-list"><li class="post-list-item"><a class="post-list-link" href="/orther/2017/02/22/source-insight4-crack.html">source insight4安装使用</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2017/02/21/rocketmq-topic-delete.html">rocketmq删除topic</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2017/02/21/rocketmq-message-store.html">rocketmq消息存储</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2017/02/20/idempotent-define.html">幂等介绍</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2017/02/20/github-sync-fork-upstream.html">github上fork项目源同步</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2017/02/16/intellij-idea-2016.html">intellij-idea-2016下载安装</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2017/01/24/bubiao-protocol.html">部标808协议文件</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2017/01/24/life-secret.html">生活小秘方</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2017/01/10/mysql-odbc-driver-error.html">无法加载mysql odbc 5.3 unicode driver</a></li><li class="post-list-item"><a class="post-list-link" href="/rocketmq/2016/11/25/rocketmq-net-port.html">rocketmq服务中的端口号</a></li><li class="post-list-item"><a class="post-list-link" href="/rocketmq/2016/11/13/rocketmq-broker-synctopic2namesrv.html">rocketmq中broker启动同步topic到namesrv过程</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2016/11/10/java-error-note.html">java常见错误</a></li><li class="post-list-item"><a class="post-list-link" href="/rocketmq/2016/11/09/rocketmq-install-note.html">rocketmq安装记录</a></li><li class="post-list-item"><a class="post-list-link" href="/rocketmq/2016/11/09/rocketmq-docs.html">Rocketmq文档</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2016/10/28/game-develop-skill.html">游戏开发要点</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/10/14/oracle-error-note.html">oracle错误记录</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/10/11/oracle-materialized-view.html">oracle物化视图</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/10/09/centos-oracle11gr2-install.html">Centos7安装oracle11gr2</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/10/08/gdb-miss-debuginfo.html">gdb-miss-debuginfo</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/09/29/linux-io-schedule.html">Linux IO调度算法</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/09/27/linux-c-func.html">Linux下C函数定义</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/09/26/tcpdump.html">tcpdump使用文档</a></li><li class="post-list-item"><a class="post-list-link" href="/编程/2016/09/20/eim.html">eim</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/09/16/linux-strace.html">linux-strace使用介绍</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/09/16/linux-brk-sbrk.html">brk,sbrk--改变数据段长度</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/09/07/centos-note.html">Centos记录</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2016/09/05/raid.html">raid磁盘阵列介绍</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/09/02/nginx-load-balance.html">nginx负载均衡各种场景下的应用</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2016/09/01/usb-centos-error.html">U盘安装centos7，启动报错</a></li><li class="post-list-item"><a class="post-list-link" href="/frontend/2016/09/01/js-generate-uuid.html">JavaScript生成全局唯一id的方法</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2016/08/29/notepad.html">随笔</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/08/22/kafka-window.html">kafka在window下部署</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/08/19/makefile.html">Makefile学习</a></li><li class="post-list-item"><a class="post-list-link" href="/frontend/2016/08/16/http-etag-last-midified.html">HTTP缓存ETAG和Last-Modified</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2016/08/16/ip-catagory.html">ip地址分类</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2016/08/09/android-connection-session.html">android非浏览器应用程序与服务器会话保持实现</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/07/28/memcache-memcached-diff.html">memcache与memcached区别</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/07/19/centos-lvs.html">CentOS 7.0下安装部署LVS</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2016/07/19/awk.html">awk学习</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/07/11/epoll.html">Linux epoll学习</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/07/04/golang-deamon.html">go守护进程实现方式</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/07/04/tcp-load-balancing.html">tcp连接负载均衡</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/07/04/tcp-rst.html">tcp出现rst情况</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2016/05/26/linux-tcp-optimization.html">Linux下tcp的优化</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2016/05/08/oracle-merge-into.html">oracle中merge into语法注意点</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2016/02/05/window-batch.html">Window批处理记录</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2015/10/11/kesankaoshi.html">机动车驾驶科目三操作要领</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2015/09/28/window-service-program.html">window服务编程</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2015/09/21/assembly-instruction.html">汇编指令集</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2015/09/15/bool-BOOL.html">bool和BOOL的区别</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2015/08/20/ssh-limit.html">ssh限制ip远程登录</a></li><li class="post-list-item"><a class="post-list-link" href="/orther/2015/08/18/ue-regex.html">ultraedit正则表达式使用</a></li><li class="post-list-item"><a class="post-list-link" href="/backend/2015/05/07/occi.html">c++使用occi连接oracle</a></li><li class="post-list-item"><a class="post-list-link" href="/frontend/2015/03/06/gulp.html">gulp 提高页面加载速度</a></li></ul><script src="http://7.url.cn/edu/jslib/comb/require-2.1.6,jquery-1.9.1.min.js"></script><script>$(".post-list").addClass("toc-article"),$(".post-list-item a").attr("target","_blank"),$("#post-nav-button > a:nth-child(2)").click(function(){$(".fa-bars, .fa-times").toggle(),$(".post-list").toggle(300),$(".toc").length>0&&$("#toc, #tocButton").toggle(200,function(){$(".switch-area").is(":visible")&&$("#tocButton").attr("value",valueHide)})})</script><script></script></div><footer id="footer"><div class="outer"><div id="footer-info"><div class="footer-left">&copy; 2017 lehoon</div><div class="footer-right"><a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/luuman/hexo-theme-spfk" target="_blank">spfk</a> by luuman</div></div></div></footer></div><script src="http://7.url.cn/edu/jslib/comb/require-2.1.6,jquery-1.9.1.min.js"></script><script src="http://static.lehoon.cn/js/main.js"></script><script>$(document).ready(function(){})</script><div class="scroll" id="scroll"><a href="#"><i class="fa fa-arrow-up"></i></a><a href="#comments"><i class="fa fa-comments-o"></i></a><a href="#footer"><i class="fa fa-arrow-down"></i></a></div><script>$(document).ready(function(){$("#comments").length<1&&$("#scroll > a:nth-child(2)").hide()})</script><script language="javascript">$(function(){$("a[title]").each(function(){var t=$(this),e=t.attr("title");void 0!=e&&""!=e&&t.data("title",e).removeAttr("title").hover(function(){var i=t.offset();$('<div id="anchortitlecontainer"></div>').appendTo($("body")).html(e).css({top:i.top-t.outerHeight()-15,left:i.left+t.outerWidth()/2+1}).fadeIn(function(){var t=$(this);setTimeout(function(){t.remove()},800*t.text().length)})},function(){$("#anchortitlecontainer").remove()})})})</script></div></body></html>